<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<script language="javascript">
// JavaScript Document

var mymouse=0;
var card=Boolean(<? echo ($this->fivechess['next_user'] == $this->user_name);?>);
var nextIco;
var yourIco,enemyIco;
var yourmethod = "get";
var time,time_leav; //the timeout Interval
var prev_step = "<? echo $this->fivechess['prev_step'] ?>";
var allchesspos = "<? echo $this->fivechess['chessboard'] ?>";

var user = "<?=$this->user_name ?>";
var enemy = "<? echo ($this->user_name == $this->fivechess['host_user'])? $this->fivechess['guest_user']:$this->fivechess['host_user'] ; ?>";
yourIco = Boolean(<? echo ($this->user_name == $this->fivechess['host_user'])? 1:0 ; ?>);
enemyIco = !yourIco;
if(card)		{
	nextIco = GetImg("curr");
}
else		{
	nextIco = GetImg("error");
}
	
var time_span_text = "host_time";
var leavel_time = 599;

function GetObj(nametext)
{
	if(nametext)
		return document.getElementById(nametext);
}

function GetImg(imgtext)
{
	if(imgtext)
		return "/public/images/fivechess/" + imgtext+ ".gif";
}

function GetMenuImg(imgtext)
{
	if(imgtext)
		return "/public/images/fivechess/menu/" + imgtext+ ".jpg";
}

function SetMenuImg(imgtext, flag)
{
	var img = flag ? imgtext : (imgtext + "2");
	GetObj(imgtext).src = GetMenuImg(img);
}

function count_change()	{
		leavel_time = 599;		
		leavel_time_span = GetObj(time_span_text);
		leavel_time_span.innerHTML = "00:00";
		time_span_text = (time_span_text == "host_time") ? "guest_time" : "host_time";
}

function count_times()	{
		var leavel_time_span;
	
	var minute = parseInt(leavel_time / 60, 10);
	var second = parseInt(leavel_time % 60, 10);
	if(minute < 10)//if minute < 10,will add a "0" string
		minute = "0" + minute;
	if(second < 10)//the same to above
		second = "0" + second;
	//if user timeout,will random a pos on this chessboard
	if(leavel_time > 0)	{
		var leavel_time_span = GetObj(time_span_text);
		leavel_time_span.innerHTML = minute + ":" + second;
	}
	else if(card) {
		var chess_pos;
		var chess_img;
		do	{
			chess_pos = Math.floor(Math.random() * 225);
			chess_img = GetObj("qz" + chess_pos).src;
		}while(chess_img.substr(chess_img.length - 9) != "empty.gif");
		chessclick(chess_pos);
	}
	leavel_time--;
}

function GetXmlHttpObject()
{
	var xmlHttp=null;
	try
	{
		// Firefox, Opera 8.0+, Safari
		xmlHttp=new XMLHttpRequest();
	}
	catch (e)
	{
		//Internet Explorer
		try
		{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e)
		{
			xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
		}
	}
	return xmlHttp;
}

function setimg(pos, img)
{
	if(pos >= 1 && pos <=225 && (img == "black" || img == "white" || img == "empty"))	{
		var tmpval = (img == "empty") ? ("onmouseover=MyMouseIn("+pos+"); onclick=chessclick("+pos+"); onmouseout=MyMouseOut("+pos+");"): "";
		GetObj("qtd"+pos).innerHTML="<img id='qz"+pos+"' " + tmpval + " src='" + GetImg(img) + "' width='30' height='30'/>";
	}
	//alert(GetObj("qtd"+pos).innerHTML);
}

function chess_init(flag)
{
	//gameover clear up the board 
	if(!flag)	{
		for(i = 0; i< 225; i++)	{
			setimg(i+1, "empty");
		}
		return ;
	}
	//init the chess board with the data get from database
	var ch_pos_arr = allchesspos.split("|");
	for(i = 0; i < ch_pos_arr.length; i++)	{
		Ico = ((i % 2) == 0)?"black":"white";
			setimg(ch_pos_arr[i], Ico);
	}
}

function ajax_init()
{
	time=window.setInterval("ajxSend()",2000);
}

function chessboard_init()
{
	chess_init(true);
	ajax_init();
}

function ajax_destory()
{
	window.clearInterval(time);
	time = -1;
}

function count_time_init()
{
	time_leav = window.setInterval("count_times()",1000);
}

function count_time_destory()
{
	clearInterval(time_leav);
}


var XMLrequest = GetXmlHttpObject();
if (!XMLrequest){
  alert("你的浏览器不支持异步传输！");
}
//var debug = false;
function ajxSend(){
	var url;
		url="<? echo $this->baseUrl ?>/fivechess/chessboard/method/"+yourmethod+"/table/<? echo $this->fivechess['id'] ?>/user/" + user + "/seat/" + prev_step + "/";
	if(yourmethod == "set" || yourmethod == "win" || yourmethod == "lose" ||
	 yourmethod == "draw_ack" || yourmethod == "draw_nak" /*|| yourmethod == "give_up"*/ ||
	 yourmethod == "draw_ok" || yourmethod == "draw_deny" ||
	 yourmethod == "regret_ack" || yourmethod == "regret_nak" ||
	 yourmethod == "regret_ok" || yourmethod == "regret_deny")	{
		yourmethod = "get";
		//if(yourmethod == "win")
		//	debug = true;
	}
	XMLrequest.open("GET", url, true);
	XMLrequest.onreadystatechange = ajxReceive;
	XMLrequest.setRequestHeader("If-Modified-Since","0");
	XMLrequest.send(null);
}

function ajxReceive(){
  if (XMLrequest.readyState == 4 && XMLrequest.status == 200){
  	//if(debug) {alert(XMLrequest.responseText); debug = false;}
		if (!XMLrequest.responseText || XMLrequest.responseText=="") return;
		//alert(XMLrequest.responseText);
		var restxt = XMLrequest.responseText.split("|");
		if(restxt[0] == "UpdateOK")	{
			if(restxt[1] == "set")
				count_time_init();
		}
		else if(restxt[0] == "Updated")	{
			step_no = Number(restxt[1]);
			prev_step = Number(restxt[2]);
			setimg(prev_step, enemyIco?"black":"white");
			if(If_I_Lose(prev_step))	{
				Lose_Game();
				return;
			}		
			card = true;
			nextIco = GetImg("curr");
			ReplaceMyMouse();
			count_change();
			//guest has't decide a chess,so can't regret
			if(step_no  > 2)
				SetMenuImg("menu_regret", true);
			//enable menu
			SetMenuImg("menu_give_up", true);
			SetMenuImg("menu_draw", true);
			//add new chess to the chessboardinfo
			if(allchesspos == "")
				allchesspos = String(restxt[2]);
			else
				allchesspos += "|" + String(restxt[2]);
		}
		else if(restxt[0] == "GameOver")	{
			ajax_destory();
			chess_init(false);
			GetObj("menu_start").src = GetMenuImg("menu_start");
			card = false;
			nextIco = GetImg("error");
			SetMenuImg("menu_regret", false);	
			SetMenuImg("menu_give_up", false);	
			SetMenuImg("menu_draw", false);
		}
		//start the game
		else if(restxt[0] == "GameGo")	{
		//init all the variable.
			if(restxt[1] == "<?=$this->user_name ?>")	{
				card = true;
				yourIco = true;
				enemyIco = false;
				nextIco = GetImg("curr");
				if(mymouse >=1 && mymouse <= 225)
					GetObj("qz"+mymouse).src=nextIco;
				//enable menu
				//SetMenuImg("menu_regret", true);	
				SetMenuImg("menu_give_up", true);	
				SetMenuImg("menu_draw", true);
			}
			else	{
				card = false;
				yourIco = false;
				enemyIco = true;
				nextIco = GetImg("error");
			}
			GetObj("host_name").innerHTML = restxt[1];
			GetObj("guest_name").innerHTML = restxt[2];
			ReplaceMyMouse();
			yourmethod = "get";
			prev_step = 0;
			
		}
		else if(restxt[0] == "Give_Up")	{
			alert("<? echo ($this->user_name == $this->fivechess['host_user'])? $this->fivechess['guest_user']:$this->fivechess['host_user'] ; ?> 认输！");
			Win_Game();
		}
		else if(restxt[0] == "GIVE_UP_ACK")	{
			Lose_Game();
		}
		//draw
		else if(restxt[0] == "DRAW")	{
			Draw_Game();
		}
		else if(restxt[0] == "DRAW_ACK")	{
			Draw_Game_Ack();
		}
		else if(restxt[0] == "DRAW_NAK")	{
			Draw_Game_Nak();
		}
		//regret
		else if(restxt[0] == "REGRET")	{
			Regret_Game();
		}
		else if(restxt[0] == "REGRET_ACK")	{
			Regret_Game_Ack();
		}
		else if(restxt[0] == "REGRET_NAK")	{
			Regret_Game_Nak();
		}
		/*
		else if(restxt[0] == "Init")	{//regret two chess 
			setimg(restxt[restxt.length-1],"empty");
			setimg(restxt[restxt.length-2],"empty");
		}
		*/
  }
}

function same_chess(obj, imgfile)
{
	if(obj && obj.src.substr(obj.src.length - imgfile.length) == imgfile)
		return true;
	
	return false;
}

function If_Five_Together(z, d)	{
	var num_join = 1;
	var curr_chess = GetObj("qz" + z).src;
	var chess_img = curr_chess.substr(curr_chess.length - 9);//(yourIco) ? "black.gif" : "white.gif";
	for(var i = 1; i < 5; i++)	{
		var qz_num = Number(z) + i*Number(d);
		var qz_obj = GetObj("qz" + qz_num);
	
		if(same_chess(qz_obj, chess_img))	
				num_join++;
		else
			break;
	}
	
	if(num_join == 5)
		return true;
	for(var i = 1; i < 5; i++)	{
		var qz_num = Number(z) - i*Number(d);
		var qz_obj = GetObj("qz" + qz_num);
	
		if(same_chess(qz_obj, chess_img))		
				num_join++;
		else
			break;
	}
	
	if(num_join == 5)
		return true;
	else
		return false;
}

function If_I_Win(z)	
{
	return (If_Five_Together(z, 1) || If_Five_Together(z, 15) 
	|| If_Five_Together(z, 14) || If_Five_Together(z, 16));
}

function If_I_Lose(z)	
{
	return (If_Five_Together(z, 1) || If_Five_Together(z, 15) 
	|| If_Five_Together(z, 14) || If_Five_Together(z, 16));
}

function Win_Game()
{
		alert("您赢了,恭喜!");
		yourmethod = "win";
		//ajxSend();
}

function Lose_Game()
{
		alert("您输了,再接再厉!");
		yourmethod = "lose";
		//ajxSend();
}

function Draw_Game()
{
	if(confirm(enemy + " 请求与你和棋"))	{
		yourmethod = "draw_ack";
		//ajxSend();
	}
	else	{
		yourmethod = "draw_nak";
		//ajxSend();
	}
}

function Draw_Game_Ack()
{
		alert(enemy + " 同意与你和棋");
		yourmethod = "draw_ok";
		//ajxSend();
}

function Draw_Game_Nak()
{
		alert(enemy + " 不同意与你和棋");
		yourmethod = "draw_deny";
		//ajxSend();
}

function Regret_Game()
{
	if(confirm(enemy +" 请求悔棋"))	{
		var ch_pos_arr = allchesspos.split("|");
		setimg(ch_pos_arr[ch_pos_arr.length-2],"empty");
		setimg(ch_pos_arr[ch_pos_arr.length-1],"empty");
		ch_pos_arr.splice(ch_pos_arr.length-2,2);
		allchesspos = ch_pos_arr.join("|");
		yourmethod = "regret_ack";
		//ajxSend();
	}
	else	{
		yourmethod = "regret_nak";
		//ajxSend();
	}
}

function Regret_Game_Ack()
{
		alert(enemy + " 同意你悔棋");
		var ch_pos_arr = allchesspos.split("|");
		setimg(ch_pos_arr[ch_pos_arr.length-2],"empty");
		setimg(ch_pos_arr[ch_pos_arr.length-1],"empty");
		ch_pos_arr.splice(ch_pos_arr.length-2,2);
		allchesspos = ch_pos_arr.join("|");
		yourmethod = "regret_ok";
		//ajxSend();
		//alert(allchesspos);
}

function Regret_Game_Nak()
{
		alert(enemy + " 不同意你悔棋");
		yourmethod = "regret_deny";
		//ajxSend();
}

function chessclick(z){
	if (!card) return;
	if ((GetObj("qz"+z).src == GetImg("black")) || ((GetObj("qz"+z).src == GetImg("white"))) ) return;
	setimg(z, yourIco? "black":"white");
	prev_step = z;
	nextIco = GetImg("error");
	card=false;
	yourmethod = "set";
	//disable the  menu
	SetMenuImg("menu_regret", false);
	SetMenuImg("menu_give_up", false);
	SetMenuImg("menu_draw", false);	
	
	//add new chess to the chessboardinfo
	if(allchesspos == "")
		allchesspos = String(z);
	else
		allchesspos += "|" + String(z);
	
	if(If_I_Win(z))	{
		Win_Game();
		return;
	}
	count_change();
	count_time_destory();
}

function MyMouseOut(z){
	GetObj("qz"+z).src = GetImg("empty");
	mymouse=0;
}
function MyMouseIn(z){
	GetObj("qz"+z).src=nextIco;
	mymouse=Number(z);
}

function GetIco(z)
{
	var mouse = GetObj("qz" + z);
	return mouse.src.substr(mouse.src.length-9,5);
}

function ReplaceMyMouse(){
	if(mymouse>0 && GetIco(mymouse)=="error"){
		GetObj("qz"+mymouse).src=nextIco;
	}
}

function menu_fun(act)	
{
	var imgObj = GetObj("menu_" + act);
	if(imgObj.src.substr(imgObj.src.length - 5) == "2.jpg")	return;
	switch(act)	{
		case "swap":
			return;
			break;
		case "regret":
			yourmethod = "regret";
			ajxSend();
			break;
		case "start":
			yourmethod = "start";
			ajxSend();
			ajax_init();
			break;
		case "give_up":
			yourmethod = "give_up";
			ajxSend();
			//ajax_destory();
			break;
		case "draw":
			yourmethod = "draw";
			ajxSend();
			break;
	}
	imgObj.src = same_chess(imgObj, "menu_" + act + ".jpg") ? GetMenuImg("menu_" + act + "2") : GetMenuImg("menu_" + act);
}

</script>
<link href="/public/styles/fivechess.css" rel="stylesheet" type="text/css">

<body onLoad="chessboard_init();count_time_init();">
<TABLE width=100%>
  <TBODY>
  <TR>
    <TD width="159" height="50">&nbsp;</TD>
    <TD height="50" >
	<TABLE height=50 cellSpacing=0 cellPadding=0 width=450 align=center  background="/public/images/fivechess/five_title.jpg" border=0>
      <tr>
        <td>&nbsp;</td>
      </tr>
    </table></TD>
    <TD width="258" height="50">&nbsp;</TD>
  </TR>
          
    <TR>
    <TD width="159" height="30"><img src="/public/images/fivechess/black.gif"><span id = "host_name"><? echo $this->fivechess['host_user']?></span></TD>
    <TD width="450" height="450" rowspan="5">
        <TABLE height=450 cellSpacing=0 cellPadding=0 width=450 align=center  background="/public/images/fivechess/chessboard.jpg" border=0>
          <TBODY>
            <TR>
              <TD id=qtd1><IMG id=qz1 onmouseover=MyMouseIn(1); 
            onclick=chessclick(1); onmouseout=MyMouseOut(1); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd2><IMG id=qz2 onmouseover=MyMouseIn(2); 
            onclick=chessclick(2); onmouseout=MyMouseOut(2); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd3><IMG id=qz3 onmouseover=MyMouseIn(3); 
            onclick=chessclick(3); onmouseout=MyMouseOut(3); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd4><IMG id=qz4 onmouseover=MyMouseIn(4); 
            onclick=chessclick(4); onmouseout=MyMouseOut(4); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd5><IMG id=qz5 onmouseover=MyMouseIn(5); 
            onclick=chessclick(5); onmouseout=MyMouseOut(5); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd6><IMG id=qz6 onmouseover=MyMouseIn(6); 
            onclick=chessclick(6); onmouseout=MyMouseOut(6); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd7><IMG id=qz7 onmouseover=MyMouseIn(7); 
            onclick=chessclick(7); onmouseout=MyMouseOut(7); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd8><IMG id=qz8 onmouseover=MyMouseIn(8); 
            onclick=chessclick(8); onmouseout=MyMouseOut(8); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd9><IMG id=qz9 onmouseover=MyMouseIn(9); 
            onclick=chessclick(9); onmouseout=MyMouseOut(9); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd10><IMG id=qz10 onmouseover=MyMouseIn(10); 
            onclick=chessclick(10); onmouseout=MyMouseOut(10); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd11><IMG id=qz11 onmouseover=MyMouseIn(11); 
            onclick=chessclick(11); onmouseout=MyMouseOut(11); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd12><IMG id=qz12 onmouseover=MyMouseIn(12); 
            onclick=chessclick(12); onmouseout=MyMouseOut(12); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd13><IMG id=qz13 onmouseover=MyMouseIn(13); 
            onclick=chessclick(13); onmouseout=MyMouseOut(13); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd14><IMG id=qz14 onmouseover=MyMouseIn(14); 
            onclick=chessclick(14); onmouseout=MyMouseOut(14); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd15><img id=qz15 onMouseOver=MyMouseIn(15); 
            onClick=chessclick(15); onMouseOut=MyMouseOut(15); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            </TR>
            <TR>
              <TD id=qtd16><IMG id=qz16 onmouseover=MyMouseIn(16); 
            onclick=chessclick(16); onmouseout=MyMouseOut(16); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd17><IMG id=qz17 onmouseover=MyMouseIn(17); 
            onclick=chessclick(17); onmouseout=MyMouseOut(17); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd18><IMG id=qz18 onmouseover=MyMouseIn(18); 
            onclick=chessclick(18); onmouseout=MyMouseOut(18); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd19><IMG id=qz19 onmouseover=MyMouseIn(19); 
            onclick=chessclick(19); onmouseout=MyMouseOut(19); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd20><IMG id=qz20 onmouseover=MyMouseIn(20); 
            onclick=chessclick(20); onmouseout=MyMouseOut(20); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd21><IMG id=qz21 onmouseover=MyMouseIn(21); 
            onclick=chessclick(21); onmouseout=MyMouseOut(21); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd22><IMG id=qz22 onmouseover=MyMouseIn(22); 
            onclick=chessclick(22); onmouseout=MyMouseOut(22); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd23><IMG id=qz23 onmouseover=MyMouseIn(23); 
            onclick=chessclick(23); onmouseout=MyMouseOut(23); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd24><IMG id=qz24 onmouseover=MyMouseIn(24); 
            onclick=chessclick(24); onmouseout=MyMouseOut(24); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd25><IMG id=qz25 onmouseover=MyMouseIn(25); 
            onclick=chessclick(25); onmouseout=MyMouseOut(25); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd26><IMG id=qz26 onmouseover=MyMouseIn(26); 
            onclick=chessclick(26); onmouseout=MyMouseOut(26); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd27><IMG id=qz27 onmouseover=MyMouseIn(27); 
            onclick=chessclick(27); onmouseout=MyMouseOut(27); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd28><IMG id=qz28 onmouseover=MyMouseIn(28); 
            onclick=chessclick(28); onmouseout=MyMouseOut(28); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd29><IMG id=qz29 onmouseover=MyMouseIn(29); 
            onclick=chessclick(29); onmouseout=MyMouseOut(29); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd30><IMG id=qz30 onmouseover=MyMouseIn(30); 
            onclick=chessclick(30); onmouseout=MyMouseOut(30); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD></TR>
            <TR>
              <TD id=qtd31><IMG id=qz31 onmouseover=MyMouseIn(31); 
            onclick=chessclick(31); onmouseout=MyMouseOut(31); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd32><IMG id=qz32 onmouseover=MyMouseIn(32); 
            onclick=chessclick(32); onmouseout=MyMouseOut(32); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd33><IMG id=qz33 onmouseover=MyMouseIn(33); 
            onclick=chessclick(33); onmouseout=MyMouseOut(33); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd34><IMG id=qz34 onmouseover=MyMouseIn(34); 
            onclick=chessclick(34); onmouseout=MyMouseOut(34); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd35><IMG id=qz35 onmouseover=MyMouseIn(35); 
            onclick=chessclick(35); onmouseout=MyMouseOut(35); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd36><IMG id=qz36 onmouseover=MyMouseIn(36); 
            onclick=chessclick(36); onmouseout=MyMouseOut(36); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd37><IMG id=qz37 onmouseover=MyMouseIn(37); 
            onclick=chessclick(37); onmouseout=MyMouseOut(37); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd38><IMG id=qz38 onmouseover=MyMouseIn(38); 
            onclick=chessclick(38); onmouseout=MyMouseOut(38); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd39><IMG id=qz39 onmouseover=MyMouseIn(39); 
            onclick=chessclick(39); onmouseout=MyMouseOut(39); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd40><IMG id=qz40 onmouseover=MyMouseIn(40); 
            onclick=chessclick(40); onmouseout=MyMouseOut(40); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd41><IMG id=qz41 onmouseover=MyMouseIn(41); 
            onclick=chessclick(41); onmouseout=MyMouseOut(41); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd42><IMG id=qz42 onmouseover=MyMouseIn(42); 
            onclick=chessclick(42); onmouseout=MyMouseOut(42); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd43><IMG id=qz43 onmouseover=MyMouseIn(43); 
            onclick=chessclick(43); onmouseout=MyMouseOut(43); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd44><IMG id=qz44 onmouseover=MyMouseIn(44); 
            onclick=chessclick(44); onmouseout=MyMouseOut(44); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd45><IMG id=qz45 onmouseover=MyMouseIn(45); 
            onclick=chessclick(45); onmouseout=MyMouseOut(45); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD></TR>
            <TR>
              <TD id=qtd46><IMG id=qz46 onmouseover=MyMouseIn(46); 
            onclick=chessclick(46); onmouseout=MyMouseOut(46); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd47><IMG id=qz47 onmouseover=MyMouseIn(47); 
            onclick=chessclick(47); onmouseout=MyMouseOut(47); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd48><IMG id=qz48 onmouseover=MyMouseIn(48); 
            onclick=chessclick(48); onmouseout=MyMouseOut(48); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd49><IMG id=qz49 onmouseover=MyMouseIn(49); 
            onclick=chessclick(49); onmouseout=MyMouseOut(49); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd50><IMG id=qz50 onmouseover=MyMouseIn(50); 
            onclick=chessclick(50); onmouseout=MyMouseOut(50); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd51><IMG id=qz51 onmouseover=MyMouseIn(51); 
            onclick=chessclick(51); onmouseout=MyMouseOut(51); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd52><IMG id=qz52 onmouseover=MyMouseIn(52); 
            onclick=chessclick(52); onmouseout=MyMouseOut(52); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd53><IMG id=qz53 onmouseover=MyMouseIn(53); 
            onclick=chessclick(53); onmouseout=MyMouseOut(53); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd54><IMG id=qz54 onmouseover=MyMouseIn(54); 
            onclick=chessclick(54); onmouseout=MyMouseOut(54); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd55><IMG id=qz55 onmouseover=MyMouseIn(55); 
            onclick=chessclick(55); onmouseout=MyMouseOut(55); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd56><IMG id=qz56 onmouseover=MyMouseIn(56); 
            onclick=chessclick(56); onmouseout=MyMouseOut(56); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd57><IMG id=qz57 onmouseover=MyMouseIn(57); 
            onclick=chessclick(57); onmouseout=MyMouseOut(57); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd58><IMG id=qz58 onmouseover=MyMouseIn(58); 
            onclick=chessclick(58); onmouseout=MyMouseOut(58); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd59><IMG id=qz59 onmouseover=MyMouseIn(59); 
            onclick=chessclick(59); onmouseout=MyMouseOut(59); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd60><IMG id=qz60 onmouseover=MyMouseIn(60); 
            onclick=chessclick(60); onmouseout=MyMouseOut(60); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD></TR>
            <TR>
              <TD id=qtd61><IMG id=qz61 onmouseover=MyMouseIn(61); 
            onclick=chessclick(61); onmouseout=MyMouseOut(61); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd62><IMG id=qz62 onmouseover=MyMouseIn(62); 
            onclick=chessclick(62); onmouseout=MyMouseOut(62); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd63><IMG id=qz63 onmouseover=MyMouseIn(63); 
            onclick=chessclick(63); onmouseout=MyMouseOut(63); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd64><IMG id=qz64 onmouseover=MyMouseIn(64); 
            onclick=chessclick(64); onmouseout=MyMouseOut(64); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd65><IMG id=qz65 onmouseover=MyMouseIn(65); 
            onclick=chessclick(65); onmouseout=MyMouseOut(65); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd66><IMG id=qz66 onmouseover=MyMouseIn(66); 
            onclick=chessclick(66); onmouseout=MyMouseOut(66); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd67><IMG id=qz67 onmouseover=MyMouseIn(67); 
            onclick=chessclick(67); onmouseout=MyMouseOut(67); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd68><IMG id=qz68 onmouseover=MyMouseIn(68); 
            onclick=chessclick(68); onmouseout=MyMouseOut(68); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd69><IMG id=qz69 onmouseover=MyMouseIn(69); 
            onclick=chessclick(69); onmouseout=MyMouseOut(69); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd70><IMG id=qz70 onmouseover=MyMouseIn(70); 
            onclick=chessclick(70); onmouseout=MyMouseOut(70); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd71><IMG id=qz71 onmouseover=MyMouseIn(71); 
            onclick=chessclick(71); onmouseout=MyMouseOut(71); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd72><IMG id=qz72 onmouseover=MyMouseIn(72); 
            onclick=chessclick(72); onmouseout=MyMouseOut(72); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd73><IMG id=qz73 onmouseover=MyMouseIn(73); 
            onclick=chessclick(73); onmouseout=MyMouseOut(73); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd74><IMG id=qz74 onmouseover=MyMouseIn(74); 
            onclick=chessclick(74); onmouseout=MyMouseOut(74); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd75><IMG id=qz75 onmouseover=MyMouseIn(75); 
            onclick=chessclick(75); onmouseout=MyMouseOut(75); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD></TR>
            <TR>
              <TD id=qtd76><IMG id=qz76 onmouseover=MyMouseIn(76); 
            onclick=chessclick(76); onmouseout=MyMouseOut(76); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd77><IMG id=qz77 onmouseover=MyMouseIn(77); 
            onclick=chessclick(77); onmouseout=MyMouseOut(77); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd78><IMG id=qz78 onmouseover=MyMouseIn(78); 
            onclick=chessclick(78); onmouseout=MyMouseOut(78); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd79><IMG id=qz79 onmouseover=MyMouseIn(79); 
            onclick=chessclick(79); onmouseout=MyMouseOut(79); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd80><IMG id=qz80 onmouseover=MyMouseIn(80); 
            onclick=chessclick(80); onmouseout=MyMouseOut(80); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd81><IMG id=qz81 onmouseover=MyMouseIn(81); 
            onclick=chessclick(81); onmouseout=MyMouseOut(81); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd82><IMG id=qz82 onmouseover=MyMouseIn(82); 
            onclick=chessclick(82); onmouseout=MyMouseOut(82); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd83><IMG id=qz83 onmouseover=MyMouseIn(83); 
            onclick=chessclick(83); onmouseout=MyMouseOut(83); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd84><IMG id=qz84 onmouseover=MyMouseIn(84); 
            onclick=chessclick(84); onmouseout=MyMouseOut(84); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd85><IMG id=qz85 onmouseover=MyMouseIn(85); 
            onclick=chessclick(85); onmouseout=MyMouseOut(85); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd86><IMG id=qz86 onmouseover=MyMouseIn(86); 
            onclick=chessclick(86); onmouseout=MyMouseOut(86); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd87><IMG id=qz87 onmouseover=MyMouseIn(87); 
            onclick=chessclick(87); onmouseout=MyMouseOut(87); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd88><IMG id=qz88 onmouseover=MyMouseIn(88); 
            onclick=chessclick(88); onmouseout=MyMouseOut(88); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd89><IMG id=qz89 onmouseover=MyMouseIn(89); 
            onclick=chessclick(89); onmouseout=MyMouseOut(89); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd90><IMG id=qz90 onmouseover=MyMouseIn(90); 
            onclick=chessclick(90); onmouseout=MyMouseOut(90); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD></TR>
            <TR>
              <TD id=qtd91><IMG id=qz91 onmouseover=MyMouseIn(91); 
            onclick=chessclick(91); onmouseout=MyMouseOut(91); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd92><IMG id=qz92 onmouseover=MyMouseIn(92); 
            onclick=chessclick(92); onmouseout=MyMouseOut(92); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd93><IMG id=qz93 onmouseover=MyMouseIn(93); 
            onclick=chessclick(93); onmouseout=MyMouseOut(93); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd94><IMG id=qz94 onmouseover=MyMouseIn(94); 
            onclick=chessclick(94); onmouseout=MyMouseOut(94); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd95><IMG id=qz95 onmouseover=MyMouseIn(95); 
            onclick=chessclick(95); onmouseout=MyMouseOut(95); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd96><IMG id=qz96 onmouseover=MyMouseIn(96); 
            onclick=chessclick(96); onmouseout=MyMouseOut(96); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd97><IMG id=qz97 onmouseover=MyMouseIn(97); 
            onclick=chessclick(97); onmouseout=MyMouseOut(97); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd98><IMG id=qz98 onmouseover=MyMouseIn(98); 
            onclick=chessclick(98); onmouseout=MyMouseOut(98); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd99><IMG id=qz99 onmouseover=MyMouseIn(99); 
            onclick=chessclick(99); onmouseout=MyMouseOut(99); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd100><IMG id=qz100 onmouseover=MyMouseIn(100); 
            onclick=chessclick(100); onmouseout=MyMouseOut(100); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd101><IMG id=qz101 onmouseover=MyMouseIn(101); 
            onclick=chessclick(101); onmouseout=MyMouseOut(101); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd102><IMG id=qz102 onmouseover=MyMouseIn(102); 
            onclick=chessclick(102); onmouseout=MyMouseOut(102); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd103><IMG id=qz103 onmouseover=MyMouseIn(103); 
            onclick=chessclick(103); onmouseout=MyMouseOut(103); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd104><IMG id=qz104 onmouseover=MyMouseIn(104); 
            onclick=chessclick(104); onmouseout=MyMouseOut(104); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd105><IMG id=qz105 onmouseover=MyMouseIn(105); 
            onclick=chessclick(105); onmouseout=MyMouseOut(105); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD></TR>
            <TR>
              <TD id=qtd106><IMG id=qz106 onmouseover=MyMouseIn(106); 
            onclick=chessclick(106); onmouseout=MyMouseOut(106); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd107><IMG id=qz107 onmouseover=MyMouseIn(107); 
            onclick=chessclick(107); onmouseout=MyMouseOut(107); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd108><IMG id=qz108 onmouseover=MyMouseIn(108); 
            onclick=chessclick(108); onmouseout=MyMouseOut(108); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd109><IMG id=qz109 onmouseover=MyMouseIn(109); 
            onclick=chessclick(109); onmouseout=MyMouseOut(109); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd110><IMG id=qz110 onmouseover=MyMouseIn(110); 
            onclick=chessclick(110); onmouseout=MyMouseOut(110); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd111><IMG id=qz111 onmouseover=MyMouseIn(111); 
            onclick=chessclick(111); onmouseout=MyMouseOut(111); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd112><IMG id=qz112 onmouseover=MyMouseIn(112); 
            onclick=chessclick(112); onmouseout=MyMouseOut(112); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd113><IMG id=qz113 onmouseover=MyMouseIn(113); 
            onclick=chessclick(113); onmouseout=MyMouseOut(113); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd114><IMG id=qz114 onmouseover=MyMouseIn(114); 
            onclick=chessclick(114); onmouseout=MyMouseOut(114); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd115><IMG id=qz115 onmouseover=MyMouseIn(115); 
            onclick=chessclick(115); onmouseout=MyMouseOut(115); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd116><IMG id=qz116 onmouseover=MyMouseIn(116); 
            onclick=chessclick(116); onmouseout=MyMouseOut(116); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd117><IMG id=qz117 onmouseover=MyMouseIn(117); 
            onclick=chessclick(117); onmouseout=MyMouseOut(117); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd118><IMG id=qz118 onmouseover=MyMouseIn(118); 
            onclick=chessclick(118); onmouseout=MyMouseOut(118); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd119><IMG id=qz119 onmouseover=MyMouseIn(119); 
            onclick=chessclick(119); onmouseout=MyMouseOut(119); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd120><IMG id=qz120 onmouseover=MyMouseIn(120); 
            onclick=chessclick(120); onmouseout=MyMouseOut(120); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD></TR>
            <TR>
              <TD id=qtd121><IMG id=qz121 onmouseover=MyMouseIn(121); 
            onclick=chessclick(121); onmouseout=MyMouseOut(121); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd122><IMG id=qz122 onmouseover=MyMouseIn(122); 
            onclick=chessclick(122); onmouseout=MyMouseOut(122); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd123><IMG id=qz123 onmouseover=MyMouseIn(123); 
            onclick=chessclick(123); onmouseout=MyMouseOut(123); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd124><IMG id=qz124 onmouseover=MyMouseIn(124); 
            onclick=chessclick(124); onmouseout=MyMouseOut(124); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd125><IMG id=qz125 onmouseover=MyMouseIn(125); 
            onclick=chessclick(125); onmouseout=MyMouseOut(125); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd126><IMG id=qz126 onmouseover=MyMouseIn(126); 
            onclick=chessclick(126); onmouseout=MyMouseOut(126); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd127><IMG id=qz127 onmouseover=MyMouseIn(127); 
            onclick=chessclick(127); onmouseout=MyMouseOut(127); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd128><IMG id=qz128 onmouseover=MyMouseIn(128); 
            onclick=chessclick(128); onmouseout=MyMouseOut(128); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd129><IMG id=qz129 onmouseover=MyMouseIn(129); 
            onclick=chessclick(129); onmouseout=MyMouseOut(129); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd130><IMG id=qz130 onmouseover=MyMouseIn(130); 
            onclick=chessclick(130); onmouseout=MyMouseOut(130); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd131><IMG id=qz131 onmouseover=MyMouseIn(131); 
            onclick=chessclick(131); onmouseout=MyMouseOut(131); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd132><IMG id=qz132 onmouseover=MyMouseIn(132); 
            onclick=chessclick(132); onmouseout=MyMouseOut(132); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd133><IMG id=qz133 onmouseover=MyMouseIn(133); 
            onclick=chessclick(133); onmouseout=MyMouseOut(133); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd134><IMG id=qz134 onmouseover=MyMouseIn(134); 
            onclick=chessclick(134); onmouseout=MyMouseOut(134); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd135><IMG id=qz135 onmouseover=MyMouseIn(135); 
            onclick=chessclick(135); onmouseout=MyMouseOut(135); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD></TR>
            <TR>
              <TD id=qtd136><IMG id=qz136 onmouseover=MyMouseIn(136); 
            onclick=chessclick(136); onmouseout=MyMouseOut(136); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd137><IMG id=qz137 onmouseover=MyMouseIn(137); 
            onclick=chessclick(137); onmouseout=MyMouseOut(137); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd138><IMG id=qz138 onmouseover=MyMouseIn(138); 
            onclick=chessclick(138); onmouseout=MyMouseOut(138); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd139><IMG id=qz139 onmouseover=MyMouseIn(139); 
            onclick=chessclick(139); onmouseout=MyMouseOut(139); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd140><IMG id=qz140 onmouseover=MyMouseIn(140); 
            onclick=chessclick(140); onmouseout=MyMouseOut(140); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd141><IMG id=qz141 onmouseover=MyMouseIn(141); 
            onclick=chessclick(141); onmouseout=MyMouseOut(141); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd142><IMG id=qz142 onmouseover=MyMouseIn(142); 
            onclick=chessclick(142); onmouseout=MyMouseOut(142); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd143><IMG id=qz143 onmouseover=MyMouseIn(143); 
            onclick=chessclick(143); onmouseout=MyMouseOut(143); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd144><IMG id=qz144 onmouseover=MyMouseIn(144); 
            onclick=chessclick(144); onmouseout=MyMouseOut(144); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd145><IMG id=qz145 onmouseover=MyMouseIn(145); 
            onclick=chessclick(145); onmouseout=MyMouseOut(145); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd146><IMG id=qz146 onmouseover=MyMouseIn(146); 
            onclick=chessclick(146); onmouseout=MyMouseOut(146); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd147><IMG id=qz147 onmouseover=MyMouseIn(147); 
            onclick=chessclick(147); onmouseout=MyMouseOut(147); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd148><IMG id=qz148 onmouseover=MyMouseIn(148); 
            onclick=chessclick(148); onmouseout=MyMouseOut(148); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd149><IMG id=qz149 onmouseover=MyMouseIn(149); 
            onclick=chessclick(149); onmouseout=MyMouseOut(149); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd150><IMG id=qz150 onmouseover=MyMouseIn(150); 
            onclick=chessclick(150); onmouseout=MyMouseOut(150); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD></TR>
            <TR>
              <TD id=qtd151><IMG id=qz151 onmouseover=MyMouseIn(151); 
            onclick=chessclick(151); onmouseout=MyMouseOut(151); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd152><IMG id=qz152 onmouseover=MyMouseIn(152); 
            onclick=chessclick(152); onmouseout=MyMouseOut(152); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd153><IMG id=qz153 onmouseover=MyMouseIn(153); 
            onclick=chessclick(153); onmouseout=MyMouseOut(153); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd154><IMG id=qz154 onmouseover=MyMouseIn(154); 
            onclick=chessclick(154); onmouseout=MyMouseOut(154); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd155><IMG id=qz155 onmouseover=MyMouseIn(155); 
            onclick=chessclick(155); onmouseout=MyMouseOut(155); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd156><IMG id=qz156 onmouseover=MyMouseIn(156); 
            onclick=chessclick(156); onmouseout=MyMouseOut(156); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd157><IMG id=qz157 onmouseover=MyMouseIn(157); 
            onclick=chessclick(157); onmouseout=MyMouseOut(157); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd158><IMG id=qz158 onmouseover=MyMouseIn(158); 
            onclick=chessclick(158); onmouseout=MyMouseOut(158); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd159><IMG id=qz159 onmouseover=MyMouseIn(159); 
            onclick=chessclick(159); onmouseout=MyMouseOut(159); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd160><IMG id=qz160 onmouseover=MyMouseIn(160); 
            onclick=chessclick(160); onmouseout=MyMouseOut(160); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd161><IMG id=qz161 onmouseover=MyMouseIn(161); 
            onclick=chessclick(161); onmouseout=MyMouseOut(161); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd162><IMG id=qz162 onmouseover=MyMouseIn(162); 
            onclick=chessclick(162); onmouseout=MyMouseOut(162); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd163><IMG id=qz163 onmouseover=MyMouseIn(163); 
            onclick=chessclick(163); onmouseout=MyMouseOut(163); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd164><IMG id=qz164 onmouseover=MyMouseIn(164); 
            onclick=chessclick(164); onmouseout=MyMouseOut(164); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd165><IMG id=qz165 onmouseover=MyMouseIn(165); 
            onclick=chessclick(165); onmouseout=MyMouseOut(165); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD></TR>
            <TR>
              <TD id=qtd166><IMG id=qz166 onmouseover=MyMouseIn(166); 
            onclick=chessclick(166); onmouseout=MyMouseOut(166); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd167><IMG id=qz167 onmouseover=MyMouseIn(167); 
            onclick=chessclick(167); onmouseout=MyMouseOut(167); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd168><IMG id=qz168 onmouseover=MyMouseIn(168); 
            onclick=chessclick(168); onmouseout=MyMouseOut(168); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd169><IMG id=qz169 onmouseover=MyMouseIn(169); 
            onclick=chessclick(169); onmouseout=MyMouseOut(169); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd170><IMG id=qz170 onmouseover=MyMouseIn(170); 
            onclick=chessclick(170); onmouseout=MyMouseOut(170); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd171><IMG id=qz171 onmouseover=MyMouseIn(171); 
            onclick=chessclick(171); onmouseout=MyMouseOut(171); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd172><IMG id=qz172 onmouseover=MyMouseIn(172); 
            onclick=chessclick(172); onmouseout=MyMouseOut(172); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd173><IMG id=qz173 onmouseover=MyMouseIn(173); 
            onclick=chessclick(173); onmouseout=MyMouseOut(173); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd174><IMG id=qz174 onmouseover=MyMouseIn(174); 
            onclick=chessclick(174); onmouseout=MyMouseOut(174); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd175><IMG id=qz175 onmouseover=MyMouseIn(175); 
            onclick=chessclick(175); onmouseout=MyMouseOut(175); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd176><IMG id=qz176 onmouseover=MyMouseIn(176); 
            onclick=chessclick(176); onmouseout=MyMouseOut(176); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd177><IMG id=qz177 onmouseover=MyMouseIn(177); 
            onclick=chessclick(177); onmouseout=MyMouseOut(177); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd178><IMG id=qz178 onmouseover=MyMouseIn(178); 
            onclick=chessclick(178); onmouseout=MyMouseOut(178); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd179><IMG id=qz179 onmouseover=MyMouseIn(179); 
            onclick=chessclick(179); onmouseout=MyMouseOut(179); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd180><IMG id=qz180 onmouseover=MyMouseIn(180); 
            onclick=chessclick(180); onmouseout=MyMouseOut(180); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD></TR>
            <TR>
              <TD id=qtd181><IMG id=qz181 onmouseover=MyMouseIn(181); 
            onclick=chessclick(181); onmouseout=MyMouseOut(181); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd182><IMG id=qz182 onmouseover=MyMouseIn(182); 
            onclick=chessclick(182); onmouseout=MyMouseOut(182); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd183><IMG id=qz183 onmouseover=MyMouseIn(183); 
            onclick=chessclick(183); onmouseout=MyMouseOut(183); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd184><IMG id=qz184 onmouseover=MyMouseIn(184); 
            onclick=chessclick(184); onmouseout=MyMouseOut(184); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd185><IMG id=qz185 onmouseover=MyMouseIn(185); 
            onclick=chessclick(185); onmouseout=MyMouseOut(185); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd186><IMG id=qz186 onmouseover=MyMouseIn(186); 
            onclick=chessclick(186); onmouseout=MyMouseOut(186); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd187><IMG id=qz187 onmouseover=MyMouseIn(187); 
            onclick=chessclick(187); onmouseout=MyMouseOut(187); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd188><IMG id=qz188 onmouseover=MyMouseIn(188); 
            onclick=chessclick(188); onmouseout=MyMouseOut(188); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd189><IMG id=qz189 onmouseover=MyMouseIn(189); 
            onclick=chessclick(189); onmouseout=MyMouseOut(189); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd190><IMG id=qz190 onmouseover=MyMouseIn(190); 
            onclick=chessclick(190); onmouseout=MyMouseOut(190); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd191><IMG id=qz191 onmouseover=MyMouseIn(191); 
            onclick=chessclick(191); onmouseout=MyMouseOut(191); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd192><IMG id=qz192 onmouseover=MyMouseIn(192); 
            onclick=chessclick(192); onmouseout=MyMouseOut(192); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd193><IMG id=qz193 onmouseover=MyMouseIn(193); 
            onclick=chessclick(193); onmouseout=MyMouseOut(193); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd194><IMG id=qz194 onmouseover=MyMouseIn(194); 
            onclick=chessclick(194); onmouseout=MyMouseOut(194); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd195><IMG id=qz195 onmouseover=MyMouseIn(195); 
            onclick=chessclick(195); onmouseout=MyMouseOut(195); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD></TR>
            <TR>
              <TD id=qtd196><IMG id=qz196 onmouseover=MyMouseIn(196); 
            onclick=chessclick(196); onmouseout=MyMouseOut(196); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd197><IMG id=qz197 onmouseover=MyMouseIn(197); 
            onclick=chessclick(197); onmouseout=MyMouseOut(197); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd198><IMG id=qz198 onmouseover=MyMouseIn(198); 
            onclick=chessclick(198); onmouseout=MyMouseOut(198); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd199><IMG id=qz199 onmouseover=MyMouseIn(199); 
            onclick=chessclick(199); onmouseout=MyMouseOut(199); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd200><IMG id=qz200 onmouseover=MyMouseIn(200); 
            onclick=chessclick(200); onmouseout=MyMouseOut(200); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd201><IMG id=qz201 onmouseover=MyMouseIn(201); 
            onclick=chessclick(201); onmouseout=MyMouseOut(201); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd202><IMG id=qz202 onmouseover=MyMouseIn(202); 
            onclick=chessclick(202); onmouseout=MyMouseOut(202); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd203><IMG id=qz203 onmouseover=MyMouseIn(203); 
            onclick=chessclick(203); onmouseout=MyMouseOut(203); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd204><IMG id=qz204 onmouseover=MyMouseIn(204); 
            onclick=chessclick(204); onmouseout=MyMouseOut(204); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd205><IMG id=qz205 onmouseover=MyMouseIn(205); 
            onclick=chessclick(205); onmouseout=MyMouseOut(205); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd206><IMG id=qz206 onmouseover=MyMouseIn(206); 
            onclick=chessclick(206); onmouseout=MyMouseOut(206); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd207><IMG id=qz207 onmouseover=MyMouseIn(207); 
            onclick=chessclick(207); onmouseout=MyMouseOut(207); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd208><IMG id=qz208 onmouseover=MyMouseIn(208); 
            onclick=chessclick(208); onmouseout=MyMouseOut(208); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd209><IMG id=qz209 onmouseover=MyMouseIn(209); 
            onclick=chessclick(209); onmouseout=MyMouseOut(209); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd210><IMG id=qz210 onmouseover=MyMouseIn(210); 
            onclick=chessclick(210); onmouseout=MyMouseOut(210); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD></TR>
            <TR>
              <TD id=qtd211><IMG id=qz211 onmouseover=MyMouseIn(211); 
            onclick=chessclick(211); onmouseout=MyMouseOut(211); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd212><IMG id=qz212 onmouseover=MyMouseIn(212); 
            onclick=chessclick(212); onmouseout=MyMouseOut(212); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd213><IMG id=qz213 onmouseover=MyMouseIn(213); 
            onclick=chessclick(213); onmouseout=MyMouseOut(213); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd214><IMG id=qz214 onmouseover=MyMouseIn(214); 
            onclick=chessclick(214); onmouseout=MyMouseOut(214); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd215><IMG id=qz215 onmouseover=MyMouseIn(215); 
            onclick=chessclick(215); onmouseout=MyMouseOut(215); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd216><IMG id=qz216 onmouseover=MyMouseIn(216); 
            onclick=chessclick(216); onmouseout=MyMouseOut(216); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd217><IMG id=qz217 onmouseover=MyMouseIn(217); 
            onclick=chessclick(217); onmouseout=MyMouseOut(217); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd218><IMG id=qz218 onmouseover=MyMouseIn(218); 
            onclick=chessclick(218); onmouseout=MyMouseOut(218); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd219><IMG id=qz219 onmouseover=MyMouseIn(219); 
            onclick=chessclick(219); onmouseout=MyMouseOut(219); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd220><IMG id=qz220 onmouseover=MyMouseIn(220); 
            onclick=chessclick(220); onmouseout=MyMouseOut(220); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd221><IMG id=qz221 onmouseover=MyMouseIn(221); 
            onclick=chessclick(221); onmouseout=MyMouseOut(221); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd222><IMG id=qz222 onmouseover=MyMouseIn(222); 
            onclick=chessclick(222); onmouseout=MyMouseOut(222); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd223><IMG id=qz223 onmouseover=MyMouseIn(223); 
            onclick=chessclick(223); onmouseout=MyMouseOut(223); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
            <TD id=qtd224><IMG id=qz224 onmouseover=MyMouseIn(224); 
            onclick=chessclick(224); onmouseout=MyMouseOut(224); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD>
      <TD id=qtd225><IMG id=qz225 onmouseover=MyMouseIn(225); 
            onclick=chessclick(225); onmouseout=MyMouseOut(225); height=30 
            src="/public/images/fivechess/empty.gif" width=30></TD></TR></TBODY></TABLE></TD>
    <TD width="258"  height="30">&nbsp;</TD></TR>
  <TR>
    <TD ><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td >总用时：</td>
        <td >10:00</td>
      </tr>
      <tr>
        <td width="57%" >倒计时：</td>
        <td width="43%" ><span id="host_time">00:00</span></td>
      </tr>
    </table></TD>
    <TD >&nbsp;</TD>
  </TR>
  <TR>
    <TD height="196" align="center"><span class="vs">vs</span></TD>
    <TD >&nbsp;</TD>
  </TR>
  <TR>
    <TD><img 
      src="/public/images/fivechess/white.gif"><span id = "guest_name"><? echo $this->fivechess['guest_user']?></span></TD>
    <TD >&nbsp;</TD>
  </TR>
  <TR>
    <TD><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td >总用时：</td>
        <td >10:00</td>
      </tr>
      <tr>
        <td width="57%" >倒计时：</td>
        <td width="43%" ><span id="guest_time">00:00</span></td>
      </tr>
    </table></TD>
    <TD >&nbsp;</TD>
  </TR>
  <TR>
    <TD>&nbsp;</TD>
    <TD><table width="450" height="30" border="0" cellspacing="0" cellpadding="0" align="center" > 
      <tr>
        <td width="35"><img src="/public/images/fivechess/menu/menu_left.jpg" width="35" height="31"></td>
        <td width="75"><img id="menu_swap" onclick="menu_fun('swap')" src="/public/images/fivechess/menu/menu_swap2.jpg" width="75" height="31"></td>
        <td width="75"><img id="menu_regret" onclick="menu_fun('regret')" src="/public/images/fivechess/menu/menu_regret<? if($this->fivechess['next_user'] != $this->user_name) echo "2"; ?>.jpg" width="75" height="31"></td>
        <td width="75"><img id="menu_start" onclick="menu_fun('start')" src="/public/images/fivechess/menu/menu_start<? if($this->fivechess['status'] == 1) echo "2"; ?>.jpg" width="75" height="31"></td>
        <td width="75"><img id="menu_give_up" onclick="menu_fun('give_up')" src="/public/images/fivechess/menu/menu_give_up<? if($this->fivechess['next_user'] != $this->user_name) echo "2"; ?>.jpg" width="75" height="31"></td>
        <td width="75"><img id="menu_draw" onclick="menu_fun('draw')" src="/public/images/fivechess/menu/menu_draw<? if($this->fivechess['next_user'] != $this->user_name) echo "2"; ?>.jpg" width="75" height="31"></td>
        <td width="35"><img src="/public/images/fivechess/menu/menu_right.jpg" width="40" height="31"></td>
      </tr>
    </table></TD>
    <TD >&nbsp;</TD>
  </TR>
</TBODY></TABLE>
</body>

</html>
